﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Person.master" AutoEventWireup="true"
    CodeFile="PersonInterview.aspx.cs" Inherits="PersonInterview" %>

<%@ Register Src="UserControl/PersonNavigation.ascx" TagName="PersonNavigation" TagPrefix="uc1" %>
<%@ Import Namespace="Avatar.Company" %>
<%@ Import Namespace="Avatar.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cph_Main" runat="Server">
    <uc1:PersonNavigation ID="PersonNavigation1" runat="server" Current="5" />
    <style type="text/css">
        .row111
        {
            width: 896px;
            margin: 0 auto;
        }
        .row111 h2
        {
            height: 20px;
            padding: 15px 0 0 14px;
            font-size: 16px;
        }
        .row111 .row1p2
        {
            float: right;
            margin-top: 20px;
        }
    </style>
    <div class="layout">
        <div class="row111">
            <h2>
                面试通知</h2>
            <p class="row1P1">
                <span></span>这里是招聘单位向您发来的面试通知记录。<br>
            </p>
            <asp:ListView ID="ListView1" runat="server">
                <ItemTemplate>
                    <tr style="">
                        <td style="text-align: center;">
                            <a href="./CompanyJobList.aspx?Company=<%# CompanyInformationManager.GetCompanyInformation(JobManager.GetJob(new Guid(Eval("JobID").ToString())).PublisherUser).CompanyName %>"
                                target="_blank">
                                <%# CompanyInformationManager.GetCompanyInformation(JobManager.GetJob(new Guid(Eval("JobID").ToString())).PublisherUser).CompanyName%></a>
                        </td>
                        <td width="150">
                            <a target="_blank" href="./job.aspx?id=<%# JobManager.GetJob(new Guid(Eval("JobID").ToString())).ID%>">
                                <%# JobManager.GetJob(new Guid(Eval("JobID").ToString())).Title%></a>
                        </td>
                        <td align="left" class="tab6Td1  ">
                            <%#LocationManager.Get(JobManager.GetJob(new Guid(Eval("JobID").ToString())).LocationID).Name %>
                        </td>
                        <td>
                            <%# Helper.DateTimeStringFormat(Convert.ToDateTime(Eval("Date"))) %>
                        </td>
                        <td>
                            <%# JobManager.IsTheJobExpired(new Guid(Eval("jobID").ToString()))?"已过期":"招聘中" %>
                        </td>
                        <td style="text-align: center;">
                            <asp:LinkButton ID="btn_ApplicantSum" runat="server" OnClick="btn_ApplicantSum_Click"
                                CommandArgument='<%# Eval("JobID") %>'>[查看]</asp:LinkButton>
                        </td>
                        <td style="text-align: center;">
                            [<a href="PersonInterviewNotice.aspx?id=<%# Eval("ID") %>" target="_blank">内容</a>]
                        </td>
                    </tr>
                </ItemTemplate>
                <EmptyDataTemplate>
                    <table border="0" class="table1" style="width: 100%">
                        <tr id="Tr1" style="text-align: center;">
                            <th id="Th3" width="280" style="text-align: center;">
                                单位
                            </th>
                            <th id="Th2" width="280" style="text-align: center;">
                                职位名称
                            </th>
                            <th id="Th1" width="80" style="text-align: center;">
                                工作地点
                            </th>
                            <th id="Th4" width="100" style="text-align: center;">
                                通知日期
                            </th>
                            <th id="Th5" width="100" style="text-align: center;">
                                职位状态
                            </th>
                            <th id="Th6" width="95" style="text-align: center;">
                                申请人数
                            </th>
                            <th id="Th7" width="75" style="text-align: center;">
                                操作
                            </th>
                        </tr>
                        <tr>
                            <td colspan="7" style="padding-top: 5%; padding-bottom: 5%; text-align: center;">
                                <b>您目前没有收到任何面试通知</b>
                            </td>
                        </tr>
                    </table>
                </EmptyDataTemplate>
                <LayoutTemplate>
                    <table id="itemPlaceholderContainer" runat="server" border="0" class="table1" style="width: 100%">
                        <tr id="Tr1" runat="server" style="text-align: center;">
                            <th id="Th3" runat="server" width="280" style="text-align: center;">
                                单位
                            </th>
                            <th id="Th2" runat="server" width="300" style="text-align: center;">
                                职位名称
                            </th>
                            <th id="Th1" runat="server" width="80" style="text-align: center;">
                                工作地点
                            </th>
                            <th id="Th4" runat="server" width="100" style="text-align: center;">
                                通知日期
                            </th>
                            <th id="Th5" runat="server" width="100" style="text-align: center;">
                                职位状态
                            </th>
                            <th id="Th6" runat="server" width="75" style="text-align: center;">
                                申请人数
                            </th>
                            <th id="Th7" runat="server" width="75" style="text-align: center;">
                                操作
                            </th>
                        </tr>
                        <tr id="itemPlaceholder" runat="server">
                        </tr>
                        <tr id="Tr2" runat="server">
                            <td id="Td1" colspan="6" runat="server" style="">
                                <asp:DataPager ID="DataPager1" runat="server">
                                    <Fields>
                                        <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" ShowNextPageButton="False"
                                            ShowPreviousPageButton="False" />
                                        <asp:NumericPagerField />
                                        <asp:NextPreviousPagerField ButtonType="Button" ShowLastPageButton="True" ShowNextPageButton="False"
                                            ShowPreviousPageButton="False" />
                                    </Fields>
                                </asp:DataPager>
                            </td>
                        </tr>
                    </table>
                </LayoutTemplate>
            </asp:ListView>
            <div style="text-align: center;">
                <asp:Label ID="lbl_Error" ForeColor="Red" EnableViewState="false" runat="server"></asp:Label>
            </div>
        </div>
    </div>
</asp:Content>
